package com.youkeyi.ddy.cloud.common.api.basic.storage.stock;

import com.youkeyi.ddy.cloud.common.api.basic.storage.stock.dto.StorageStockListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.storage.stock.param.StorageStockCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.storage.stock.param.StorageStockDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.storage.stock.param.StorageStockQueryCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.storage.stock.param.StorageStockUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * StorageStockCloudService
 *
 * @Author liuxiawang
 * @Date 2024/2/19 2:31 PM
 * @Location shenzhen.china
 */
@RestController
@FeignClient(value = "YOUKEYI-DDY-CLOUD-BASIC-STORAGE", fallback = StorageStockCloudServiceFallback.class)
@RequestMapping("/storage/stock")
public interface StorageStockCloudService {

    /**
     * 查询库存列表.
     *
     * @param param the param
     * @return the auth list cloud dto
     */
    @PostMapping(value = "/query")
    public abstract StorageStockListCloudDto query(@RequestBody StorageStockQueryCloudParam param);

    /**
     * 新增库存.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/create")
    public abstract ResponseContent create(@RequestBody StorageStockCreateCloudParam param);

    /**
     * 编辑库存.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/update")
    public abstract ResponseContent update(@RequestBody StorageStockUpdateCloudParam param);

    /**
     * 删除库存.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/delete")
    public abstract ResponseContent delete(@RequestBody StorageStockDeleteCloudParam param);
}
